<?php
namespace app\assets;

use yii\web\AssetBundle;

class MAsset extends AssetBundle
{
    // public $basePath = '@webroot';
    // public $baseUrl = '@web';
    // public $css = [
       
    //     ,
    // ];
    // public $js = [
    // 	'plugins/jquery-2.1.1.js',
    // 	'js/web/bootstrap.min.css',
    // 	'js/web/common.js?ver='.RELEASE_VERSION,
    // ];
    // 设置加载的位置
    public $jsOptions = [
    'position' => \yii\web\View::POS_HEAD
    ];
    public function registerAssetFiles($view){
    	//版本号是一个常量
    	$this->css=[
    		'font-awesome/css/font-awesome.css',
	        'css/web/bootstrap.min.css',
	        'css/web/style.css?ver='.RELEASE_VERSION
    	];
    	$this->js=[
            'http://res.wx.qq.com/open/js/jweixin-1.4.0.js',
    		'plugins/jquery-2.1.1.js',
            'plugins/layer/layer.js',
	    	'js/m/TouchSlide.1.1.js',
            'plugins/raty/jquery.raty.min.js',
            'js/m/common.js?ver='.RELEASE_VERSION,
	    	'js/m/weixin.js?ver='.RELEASE_VERSION,
    	];
    	parent::registerAssetFiles($view);
    }
    
}
